package com.flycms.module.offline.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.flycms.module.offline.model.OfflineActivitySignUp;

/**
 *
 * <br/>Copyright 2020
 * <br/>All rights reserved
 * @author 沁言訫語
 * @version 2020年3月2日
 * @Date 2020年3月2日
 */

@Repository
public interface OfflineActivitySignUpDao {

    int addOfflineActivitySignUp(OfflineActivitySignUp signup);
    
    int editOfflineActivitySignUp(OfflineActivitySignUp signup);
    
    List<OfflineActivitySignUp> getOfflineActivitySignUpList(
            @Param("userId") Long userId,
            @Param("offlineId") Integer offlineId,
            @Param("status") Integer status,
            @Param("pageIndex") Integer pageIndex,
            @Param("pageSize") Integer pageSize);
    
    int getOfflineActivitySignUpCount(
            @Param("userId") Long userId,
            @Param("offlineId") Integer offlineId,
            @Param("status") Integer status);
    
    OfflineActivitySignUp queryOfflineActivitySignUpById(@Param("id") Long id);
    
}
